package com.sino.camunda.config;

import org.springframework.http.converter.json.GsonHttpMessageConverter;

import com.google.gson.GsonBuilder;

public class MyGsonHttpMessageConverter extends GsonHttpMessageConverter {

	public MyGsonHttpMessageConverter() {
		setGson(new GsonBuilder()
				.serializeNulls() // null值属性也需要序列化
				.setDateFormat("yyyy-MM-dd HH:mm:ss") // 设置日期转换
				.setPrettyPrinting()
				.create());
	}

}
